Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/view-all-routes #70

Merged
merged 19 commits into from
Oct 29, 2024
Merged

Feat/view-all-routes #70

merged 19 commits into from
Oct 29, 2024

Conversation

Ahmedhossamdev
Copy link
Member

No description provided.

Copy link
Member

@aaronbrethorst aaronbrethorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is looking really good! I have noted a couple behavioral changes I'd like to see before merging it in the PR. Also, here are a few things I noticed when playing around with the feature that should get fixed:

Add a title to the View All Routes modal

It should be called "All Routes", and that text should appear above the search bar.

The search bar doesn't seem to be working

image image

{$t('loading')}...
</div>
</div>
<LoadingSpinner />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @aaronbrethorst

The search bar is working but before I PR, I also added search by rotueId, I think I will remove it from the search filter so we can search by short and long name and description only

// TODO: change this api after deployment of get all routes api
export async function GET() {
try {
const agenciesResponse = await oba.agenciesWithCoverage.list();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't look like you're caching this data on the server side yet, right? This should be run once per app launch—and then cached in memory, instead of reloaded on every request.

}

async function preloadRoutesData() {
if (!routesCache) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 🔥 🔥

Copy link
Member

@aaronbrethorst aaronbrethorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great 🚀

@aaronbrethorst aaronbrethorst merged commit 4f50414 into main Oct 29, 2024
3 checks passed
@aaronbrethorst aaronbrethorst deleted the feat/view-all-routes branch October 29, 2024 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants